package com.lin.fengxiu.repository;

import com.lin.fengxiu.model.Spu;
import com.lin.fengxiu.model.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;


/**
 * @ClassName UserRepository
 * @Description TODO 操作数据库
 * @Author wushaopei
 * @Date 2021/3/13 14:09
 * @Version 1.0
 */
@Repository
public interface UserRepository extends JpaRepository<User,Long> {

    User findByEmail(String email);

    Optional<User> findByOpenid(String openid);

    User findFirstById(Long id);

    User findByUnifyUid(Long uuid);

}
